<template>
  <div class="topback-wrap topbox-shadow">
    <div class="return-btn" v-if="goback" v-on:click="$router.go(-1)">
      <i class="icon icon-goback"></i>
    </div>
    <P class="topback-title">{{toptitle}}</P>
    <div class="close-btn">
    	<router-link to="/">
    		返回游戏<i class="icon icon-entergame"></i>
    	</router-link>   	
    </div>
  </div>
</template>

<script>
  export default {
    name: "topheader",
    // props:["toptitle","close"],
    props: {
      toptitle: {
        type: String,
        default: ""
      },      
      goback: {
        type: Boolean,
        default: true
      },
//    close: {
//      type: Boolean,
//      default: false
//    },
//		  gobackLink :{
//	      	type: String,
//	      	default :""
//		  }
    },
    data () {
      return {
        // goback:true
      }
    },
    methods: {}
  }
</script>
